////
//
/// \file ./include/inc/parser/label_node.hpp
//
//  Copyright 2007, 2008 Chandler Carruth
//
//  Licensed under the Apache License, Version 2.0 (the "License"); you may not
//  use this file except in compliance with the License.  You may obtain a copy
//  of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
//  License for the specific language governing permissions and limitations
//  under the License.
//
////

#ifndef inc_parser_label_node_header
#define inc_parser_label_node_header

#include <string>

#include <boost/regex.hpp>

#include <inc/parser/parse_tree_node.hpp>

namespace inc {
namespace parser {

/// \brief  Label parse tree node
/// \author Chandler Carruth
/// \date   2008.05.02
///
/// This class represents a label in the parse tree. It is provides a parsing
/// routine to match against appropriate character sequences of the input
/// stream.

class   LabelNode : public ParseTreeNode
{
public:
  virtual bool parse( const iterator& first,
                      const iterator& last,
                      iterator& last_parsed );

private:
  /// Regular expression used in parsing.
  static const boost::regex label_regex;
};

} //  end parser namespace
} //  end inc namespace
#endif  //  inc_parser_label_node_header
